/*
 * @Author: your name
 * @Date: 2021-04-07 15:47:47
 * @LastEditTime: 2021-07-05 13:39:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \dolphin-data-center-front-end\src\router\async\config.async.js
 */
import routerMap from './router.map'
import { parseRoutes } from '@/utils/routerUtil'

// 异步路由配置
const routesConfig = [
  'login',
  {
    router: 'root',
    children: [
      {
        router: 'orderList',
        path: '/todoOrder/orderList',
        name: '工单列表',
        invisible: true,
      },
      'workplace',
    ],
  },
  {
    router: 'exp404',
    path: '*',
    name: '404',
  },
  {
    router: 'exp403',
    path: '/403',
    name: '403',
  },
  {
    router: 'exp500',
    path: '/500',
    name: '500',
  },
]

const options = {
  routes: parseRoutes(routesConfig, routerMap),
}

export default options
